﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
namespace BallData
{
    class MatchDataTemplate
    {
        public String league_match_name { get; set; }
        public String main_team_name { get; set; }
        public String client_team_name { get; set; }
        public MatchItem matchitem{get;set;}
        
    }

    public class MatchListDataTemple : INotifyPropertyChanged
    {
      
        public String LeagueName {get;set;}
        public String MatchHost {get;set;}
        public String MatchVisit { get; set; }
        public String m_CompanyName;
        public String CompanyName
        {
            get
            {
                return this.m_CompanyName;
            }
            set
            {
                if (this.m_CompanyName != value)
                {
                    this.m_CompanyName = value;
                    OnPropertyChanged("CompanyName");
                }
            }
        }
        public String LeagueColor {get;set;}

        public String m_Odds_a_host;
        public String Odds_a_host
        {
            get
            {
                return this.m_Odds_a_host;
            }
            set
            {
                if (this.m_Odds_a_host != value)
                {
                    this.m_Odds_a_host = value;
                    OnPropertyChanged("Odds_a_host");
                }
            }
        }
        public String m_Odds_a_vs;
        public String Odds_a_vs
        {
            get
            {
                return this.m_Odds_a_vs;
            }
            set
            {
                if (this.m_Odds_a_vs != value)
                {
                    this.m_Odds_a_vs = value;
                    OnPropertyChanged("Odds_a_vs");
                }
            }
        }
        public String m_Odds_a_visit;
        public String Odds_a_visit
        {
            get
            {
                return this.m_Odds_a_visit;
            }
            set
            {
                if (this.m_Odds_a_visit != value)
                {
                    this.m_Odds_a_visit = value;
                    OnPropertyChanged("Odds_a_visit");
                }
            }
        }

        public String m_Odds_a_host_color;
        public String Odds_a_host_color
        {
            get
            {
                return this.m_Odds_a_host_color;
            }
            set
            {
                if (this.m_Odds_a_host_color != value)
                {
                    this.m_Odds_a_host_color = value;
                    OnPropertyChanged("Odds_a_host_color");
                }
            }
        }
        public String m_Odds_a_visit_color;
        public String Odds_a_visit_color
        {
            get
            {
                return this.m_Odds_a_visit_color;
            }
            set
            {
                if (this.m_Odds_a_visit_color != value)
                {
                    this.m_Odds_a_visit_color = value;
                    OnPropertyChanged("Odds_a_visit_color");
                }
            }
        }
        public String m_Odds_e_host;
        public String Odds_e_host
        {
            get
            {
                return this.m_Odds_e_host;
            }
            set
            {
                if (this.m_Odds_e_host != value)
                {
                    this.m_Odds_e_host = value;
                    OnPropertyChanged("Odds_e_host");
                }
            }
        }
        public String m_Odds_e_vs;
        public String Odds_e_vs
        {
            get
            {
                return this.m_Odds_e_vs;
            }
            set
            {
                if (this.m_Odds_e_vs != value)
                {
                    this.m_Odds_e_vs = value;
                    OnPropertyChanged("Odds_e_vs");
                }
            }
        }
        public String m_Odds_e_visit;
        public String Odds_e_visit
        {
            get
            {
                return this.m_Odds_e_visit;
            }
            set
            {
                if (this.m_Odds_e_visit != value)
                {
                    this.m_Odds_e_visit = value;
                    OnPropertyChanged("Odds_e_visit");
                }
            }
        }
        public String m_Odds_e_host_color;
        public String Odds_e_host_color
        {
            get
            {
                return this.m_Odds_e_host_color;
            }
            set
            {
                if (this.m_Odds_e_host_color != value)
                {
                    this.m_Odds_e_host_color = value;
                    OnPropertyChanged("Odds_e_host_color");
                }
            }
        }
        public String m_Odds_e_visit_color;
        public String Odds_e_visit_color
        {
            get
            {
                return this.m_Odds_e_visit_color;
            }
            set
            {
                if (this.m_Odds_e_visit_color != value)
                {
                    this.m_Odds_e_visit_color = value;
                    OnPropertyChanged("Odds_e_visit_color");
                }
            }
        }
        public String m_Odds_o_host;
        public String Odds_o_host
        {
            get
            {
                return this.m_Odds_o_host;
            }
            set
            {
                if (this.m_Odds_o_host != value)
                {
                    this.m_Odds_o_host = value;
                    OnPropertyChanged("Odds_o_host");
                }
            }
        }
        public String m_Odds_o_vs;
        public String Odds_o_vs
        {
            get
            {
                return this.m_Odds_o_vs;
            }
            set
            {
                if (this.m_Odds_o_vs != value)
                {
                    this.m_Odds_o_vs = value;
                    OnPropertyChanged("Odds_o_vs");
                }
            }
        }
        public String m_Odds_o_visit;
        public String Odds_o_visit
        {
            get
            {
                return this.m_Odds_o_visit;
            }
            set
            {
                if (this.m_Odds_o_visit != value)
                {
                    this.m_Odds_o_visit = value;
                    OnPropertyChanged("Odds_o_visit");
                }
            }
        }
        public String m_Odds_o_host_color;
        public String Odds_o_host_color
        {
            get
            {
                return this.m_Odds_o_host_color;
            }
            set
            {
                if (this.m_Odds_o_host_color != value)
                {
                    this.m_Odds_o_host_color = value;
                    OnPropertyChanged("Odds_o_host_color");
                }
            }
        }
        public String m_Odds_o_visit_color;
        public String Odds_o_visit_color
        {
            get
            {
                return this.m_Odds_o_visit_color;
            }
            set
            {
                if (this.m_Odds_o_visit_color != value)
                {
                    this.m_Odds_o_visit_color = value;
                    OnPropertyChanged("Odds_o_visit_color");
                }
            }
        }
        public String m_CompanyColor;
        public String CompanyColor
        {
            get
            {
                return this.m_CompanyColor;
            }
            set
            {
                if (this.m_CompanyColor != value)
                {
                    this.m_CompanyColor = value;
                    OnPropertyChanged("CompanyColor");
                }
            }
        }
        public String mId{get;set;}
        public String m_MatchKoTime;
        public String MatchKoTime
        {
            get
            {
                return m_MatchKoTime;

            }
            set
            {
                
                if (m_MatchKoTime != value)
                {
                    this.m_MatchKoTime = value;
                }
                lMatchKoTime = OddsUntil.ConvertDateTimeInt(DateTime.Parse(DateTime.Now.ToString("yyyy ") + this.m_MatchKoTime));
            }
        
        }

        public double lMatchKoTime;

        public DateTime Odds_a_chgtime { get; set; }
        public DateTime Odds_e_chgtime { get; set; }
        public DateTime Odds_o_chgtime { get; set; }


        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler handler = this.PropertyChanged;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion

    }


}
